package com.z2wenfa.innosticproducer.dao;

import com.z2wenfa.innosticproducer.domain.*;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface InitDao {
    void insertCompanyBatch(List<String> companies);

    void insertCompany(@Param("name") String name);

    Company findCompanyByName(@Param("name") String name);

    List<Company> companyList();

    List<Service> serviceList();

    List<Hospital> hospitalList();

    void insertServiceBatch(List<Service> services);

    void insertYearBatch(List<String> yearList);

    void insertMonthBatch(List<String> monthList);

    void insertHospitalBatch(List<Hospital> hospitalList);

    void insertSalesBatch(List<Sales> salesList);

    @Select("SELECT * FROM Year")
    List<Year> yearList();

    @Select("SELECT * FROM Month")
    List<Month> monthList();


    void insertProductTypeBatch(List<ProductType> productTypeList);

    List<ProductType> secondLevelProductTypeList();

    void insertOrderBatch(List<Order> orderList);

    void insertOrderDetailBatch(List<OrderDetail> orderDetailList);
}
